package com.shop.comment;


public class Constants {
    public static final int TIME_OUT_SMS_CODE = 3;
    //下划线
    public final static String STRING_UNDERLINE = "_";
    //下划线
    public final static String STRING_EMPTY = "";
    //手机号正则表达式
    public static final String PHONE_REGSTR = "^[1][0-9]{10}$";

    public interface ReturnResult {
        int SUCCESS = 1;
        int FAIL = -1;
    }

    public interface UserType {
        //客户
        int CLIENT = 0;
        //管理员
        int MANAGER = 1;
    }

    public interface Memcache {
        //验证码过期时间
        int EXPIRE_TIME_SMS_CODE = TIME_OUT_SMS_CODE * 60 * 1000;
        //短信相关
        String PREFIX_SMS_CODE = "sms.code:";
    }

    public interface Properties {
        //第三方配置文件名称
        String THIRD_PART = "thirdpart.properties";
        //数据库配置文件名
        String DATA_BASE = "database.properties";
    }

    public interface Page{
        //首页商品列表数量大小
        int PAGE_SIZE_INDEX = 8;
        //默认页
        int DEFAULE_PAGE = 1;
    }
}
